//
//  headView.m
//  jiaKaoZhuShou
//
//  Created by 金艺社 on 2018/5/21.
//  Copyright © 2018年 金艺社. All rights reserved.
//

#import "headView.h"

@implementation headView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor = [UIColor custom_color:@"#F1D6D6"];
        _leftLab = [UILabel new];
        _leftLab.text = @"类型/余额";
        _leftLab.font = [UIFont systemFontOfSize:10];
        _leftLab.textColor = [UIColor custom_color:@"#999999"];
        [self addSubview:_leftLab];
        [_leftLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.equalTo(self).offset(5);
            make.top.bottom.equalTo(self);
            make.width.equalTo(@100);
        }];
        
        _rightLab = [UILabel new];
        _rightLab.textAlignment = NSTextAlignmentRight;
        _rightLab.text = @"时间/金额(元)";
        _rightLab.font = [UIFont systemFontOfSize:10];
        _rightLab.textColor = [UIColor custom_color:@"#999999"];
        [self addSubview:_rightLab];
        [_rightLab mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.equalTo(self).offset(-5);
            make.top.bottom.equalTo(self);
            make.width.equalTo(@100);
        }];
    }
    return self;
}

@end
